package day06;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/17
 **/
public class ArrayDemo {
    public static void main(String[] args) {




        int[] a={10,20,30,40,};
        int  []b=new int[6];
        System.arraycopy(a,2,b,3,2);
        for (int i = 0; i < b.length; i++) {
            System.out.println(b[i]);
        }



    }
}
